package com.ruoyi.project.distribute.service.impl;

import com.ruoyi.project.distribute.domain.HosDocumentmsg;
import com.ruoyi.project.distribute.domain.HosDrug;
import com.ruoyi.project.distribute.mapper.HosRepertoryMapper;
import com.ruoyi.project.distribute.service.IHosRepertoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author anran
 */
@Service
public class HosRepertoryServiceImpl implements IHosRepertoryService
{
    @Autowired
    private HosRepertoryMapper hosRepertoryMapper;

    /**
     *  查询药品信息
     *
     * @param hosDrug 药品信息筛选条件
     * @return 药品信息集合
     */
    @Override
    public List<HosDrug> selectHosDrugList(HosDrug hosDrug)
    {
        return hosRepertoryMapper.selectHosDrugRepertoryList(hosDrug);
    }

    /**
     * 查询批次库存及价格
     *
     * @param hosDocumentmsg
     * @return
     */
    @Override
    public List<HosDocumentmsg> selectRepertoryList(HosDocumentmsg hosDocumentmsg)
    {
        return hosRepertoryMapper.selectRepertoryList(hosDocumentmsg);
    }
}
